package com.github.shiqiyue.app.config.fastjson;

import com.alibaba.fastjson.parser.ParserConfig;
import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;

/***
 * fastjson配置
 * @author wenyao.wu
 */
@Configuration
public class FastjsonConfiguration {

    @PostConstruct
    public void init(){
        ParserConfig.getGlobalInstance().addAccept("org.springframework.session.");
        ParserConfig.getGlobalInstance().addAccept("com.github.shiqyue.");
    }
}
